package cn.wolfcode.service;


import cn.wolfcode.common.domain.UserInfo;
import cn.wolfcode.domain.OrderInfo;
import cn.wolfcode.domain.SeckillProductVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.Map;

/**
 * Created by wolfcode
 */
public interface IOrderInfoService {

    OrderInfo getById(String orderNo);

    OrderInfo getByUserIdAndSeckillId(Long phone, Long seckillId);

    String createOrder(Long phone, SeckillProductVo seckillProductVo);

    String createOrder(Long phone, Long seckillId);

    boolean validTime(Date startDate, Integer time);

    UserInfo getByToken(String token);

    void checkOrderTimeout(String orderNo, Long seckillId);


    void payOrder(String orderNo, int payType);
}
